package com.zcx.app;

import android.graphics.Bitmap;

import com.zcx.base.BaseApplication;
import com.zcx.common.Helper;
import com.zcx.net.OkHttpHelp;

import java.util.ArrayList;
import java.util.List;


/**
 * @author linhuan on 2016/10/19 上午10:20
 */
public class DollApplication extends BaseApplication {

    public static final int HAS_EFFECTIVE = 1;
    public static final int NO_EFFECTIVE = 0;

    private static DollApplication sInstance;
    public static int isEffective = HAS_EFFECTIVE;
    public static boolean isSystem = false;
    public static boolean hasSystemDialog = false;
    public static boolean isSetting = false;

    public static long START = 0;
    public static final long TEMP = 300;
    private boolean isAddressList = false;

    public static List<String> options1Items = new ArrayList<>();
    public static List<List<String>> options2Items = new ArrayList<>();
    public static List<List<List<String>>> options3Items = new ArrayList<>();

    private List<Bitmap> loadingList = new ArrayList<>();

    public static DollApplication getInstance() {
        if (Helper.isNull(sInstance)) {
//			Log.e(TAG, "THE APPLICATION OF YOUR PROJECT MUST BE 'BaseApplication', OR SOMEONE EXTEND FROM IT");
        }
        return sInstance;
    }

    @Override
    public void onCreate() {
        sInstance = this;
        super.onCreate();
        getParameter();
    }


    private void getParameter() {
        OkHttpHelp.initOkHttp();
    }

}
